hvm: Register fields CS,DS,ES,FS,GS,SS,etc. are all undefined during
authorKeir Fraser <keir.fraser@citrix.com>
Thu, 27 Dec 2007 10:39:04 +0000 (10:39 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Thu, 27 Dec 2007 10:39:04 +0000 (10:39 +0000)
commitd22f3583407347c84e88fd81351e74f04e9c1743
tree06945bea9ae49441bcc64e1bfabb8758a465a339
parentbcaa6b863d31951f59e6b83f6f174c9b8cfbab8f
hvm: Register fields CS,DS,ES,FS,GS,SS,etc. are all undefined during
HVM execution as they are not saved/restore on vmexit/vmentry. To
prevent accidental usage of these fields, poison them with 16-bit
value 0xbeef (debug builds only).
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen/arch/x86/hvm/svm/x86_32/exits.S
xen/arch/x86/hvm/svm/x86_64/exits.S
xen/arch/x86/hvm/vmx/x86_32/exits.S
xen/arch/x86/hvm/vmx/x86_64/exits.S
xen/arch/x86/x86_32/asm-offsets.c
xen/arch/x86/x86_64/asm-offsets.c